@extends('admin.master')

@section('top')
	<div class="top-breadcrumb pull-left">{!! Breadcrumbs::render('group') !!}</div>
	<div class="top-btn-group pull-right">
		<a href="{{ route('admin.group.create') }}" class="btn btn-primary">添加用户组</a>
	</div>
@endsection

@section('content')
{!! Form::open(['url'=>'admin/menu/sort']) !!}
	<table class="table table-hover table-list">
		<thead>
			<tr>
				<th width="65" class="text-center">ID</th>
				<th>用户组名称</th>
				<th class="text-center">级别值</th>
				<th class="text-right">操作</th>
			</tr>
		</thead>
		<tbody>
		@foreach ($data as $value)
			<tr>
				<td class="text-center">{{ $value->id }}</td>
				<td>{{ $value->name }}</td>
				<td class="text-center">{{ $value->level }}</td>
				<td class="text-right">
					<div class="toolbar">
						<a href="{{ route('admin.group.edit', $value['id']) }}" class="btn-link">修改</a>
						<span class="text-explode ">|</span>
						<a href="javascript:void(0);" data-id="{{ $value['id'] }}" class="btn-link delete-item">删除</a>
					</div>
				</td>
			</tr>
		@endforeach
		</tbody>
	</table>
{!! Form::close() !!}
@endsection